import request from '@/utils/request'

//登录接口
export function login(params) {
  return request({
    url: `/login`,
    method: 'post',
    params: params
  })
}

//获取当前用户登录数据
export function getInfo() {
  return request({
    url: `/getUserInfo`,
    method: 'get'
  })
}

//用户退出
export function logout() {
  return request({
    url: `/logout`,
    method: 'get'
  })
}

//得到验证码
export function getCaptcha() {
  return request({
    url: `/captcha/getCaptcha`,
    method: 'get'
  })
}
